package com.example.train.model;

import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;

/**
    * 后台用户和角色关系表
    */
@Getter
@Setter
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class SysAdminRoleRelation implements Serializable {
    private Long id;

    @NotEmpty
    private Long adminId;

    @NotEmpty
    private Long roleId;

    private static final long serialVersionUID = 1L;

    public SysAdminRoleRelation(@NotEmpty Long adminId, @NotEmpty Long roleId) {
        this.adminId = adminId;
        this.roleId = roleId;
    }
}
